/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gisgraph.components;

import gisgraph.GISGraphView;
import java.awt.Paint;
import org.apache.commons.collections15.Transformer;

/**
 *
 * @author Slawek
 */
public class GISEdgeDrawPaintTransformer implements Transformer<GISEdge, Paint> {
    
    private GISGraphView graphView;
    
    public GISEdgeDrawPaintTransformer(GISGraphView graphView)
    {
        this.graphView = graphView;
    }

    @Override
    public Paint transform(GISEdge i) {
        
        return graphView.getEdgePaint(i);

    }
    
    
    
}
